package com.tbh.annotation.event.custom;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.event.ApplicationContextEvent;


/**
 * 定义事件
 */
public class CustomEvent extends ApplicationEvent {
    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     */
    public CustomEvent(Object source) {
        super(source);
    }


    @Override
    public String toString() {
        return "Custom event";
    }
}
